<?php
namespace Home\Controller;
use Think\Controller;
class HomepageController extends CommonController {
    public function index(){
    	$userinfo = M('user')->where(array('id'=>$_SESSION['id']))->find();

    	$this->assign('user',$userinfo);
    	
        $this->display();
    }
}